#include "stdafx.h"
#include "DwarfFarmer.h"
#include "DwarfTypes.h"


CDwarfFarmer::CDwarfFarmer(std::string const & direction, std::string const & state)
	: CDwarf(DWARF_FARMER, direction, state)
{
}

void CDwarfFarmer::Say() const
{
	CDwarf::Say();
	std::cout << " I'm farmer." << std::endl;
}

void CDwarfFarmer::Work()
{
	if (GetState() == STANDS)
		SetState(MOVES);

	std::cout << "I'm farmer. I'm groving vegetables." << std::endl;
}
